package com.yishan.thread;


/**
 * @author: yishan
 * @Date: 2022/6/7 11:18
 **/
public class ThreadTest {

    public static void main(String[] args) {

        Thread thread = new Thread(){
            @Override
            public void run() {
                System.out.println("触发子线程任务对象...");
            }
        };

        thread.setName("子线程");
        thread.start();
        System.out.println("主线程");

    }


}
